﻿using System.Runtime.Serialization;

namespace Koala.Pro.Common
{
    public class MyApiException : Exception
    {
        public int errcode { get; set; }

        public MyApiException(string message = "")
            : base(message)
        {
        }

        public MyApiException(string message, int errcode)
            : base(message)
        {
            this.errcode = errcode;
        }

        public MyApiException(SerializationInfo serializationInfo, StreamingContext context)
            : base(serializationInfo, context)
        {
        }
    }
}
